#!/bin/bash

# root用户
ssh-keygen -t rsa

ssh-copy-id -i ~/.ssh/id_rsa.pub rkeuser@172.18.16.33
ssh-copy-id -i ~/.ssh/id_rsa.pub rkeuser@172.18.16.34
ssh-copy-id -i ~/.ssh/id_rsa.pub rkeuser@172.18.16.35
ssh-copy-id -i ~/.ssh/id_rsa.pub rkeuser@172.18.16.36
ssh-copy-id -i ~/.ssh/id_rsa.pub rkeuser@172.18.16.37
ssh-copy-id -i ~/.ssh/id_rsa.pub rkeuser@172.18.16.38


# rkeuser用户
# rkeuser用户的密码是 rkeuser
# sudo su rkeuser
ssh-keygen -t rsa

ssh-copy-id -i ~/.ssh/id_rsa.pub rkeuser@172.18.16.33
ssh-copy-id -i ~/.ssh/id_rsa.pub rkeuser@172.18.16.34
ssh-copy-id -i ~/.ssh/id_rsa.pub rkeuser@172.18.16.35
ssh-copy-id -i ~/.ssh/id_rsa.pub rkeuser@172.18.16.36
ssh-copy-id -i ~/.ssh/id_rsa.pub rkeuser@172.18.16.37
ssh-copy-id -i ~/.ssh/id_rsa.pub rkeuser@172.18.16.38
